package cn.java71.springboot.demo1.ctrl;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author oldliu
 * @since 1.0
 */
@RestController//controller+responsebody的组合
public class HelloController {
    @RequestMapping("/sayhi")
    public String sayhi(){
        return "hi,springboot";
    }
}
